Cocktail Help Reference
GetFindQuery(Func<IQueryable<T>,IQueryable>,Expression<Func<T,Boolean>>,Func<IQueryable,IOrderedQueryable>,Action<IFetchOptions>) Method
See Also  Send Feedback
Cocktail Assembly > Cocktail Namespace > Repository<T> Class > GetFindQuery Method : GetFindQuery(Func<IQueryable<T>,IQueryable>,Expression<Func<T,Boolean>>,Func<IQueryable,IOrderedQueryable>,Action<IFetchOptions>) Method



selector
The selector used to project the entities.
predicate
The predicate expression used to qualify the list of objects.
orderBy
Sorting function to sort the returned list of objects.
fetchOptions
Delegate to specify additional fetching options.

Glossary Item Box

Returns the query to retrieve a list of projected entities.

Syntax

Visual Basic (Declaration) 
Protected Overloads Overridable Function GetFindQuery( _
   ByVal selector As Func(Of IQueryable(Of T),IQueryable), _
   ByVal predicate As Expression(Of Func(Of T,Boolean)), _
   ByVal orderBy As Func(Of IQueryable,IOrderedQueryable), _
   ByVal fetchOptions As Action(Of IFetchOptions) _
) As IdeaBlade.EntityModel.IEntityQuery
Visual Basic (Usage)Copy Code
Dim instance As Repository(Of T)
Dim selector As Func(Of IQueryable(Of T),IQueryable)
Dim predicate As Expression(Of Func(Of T,Boolean))
Dim orderBy As Func(Of IQueryable,IOrderedQueryable)
Dim fetchOptions As Action(Of IFetchOptions)
Dim value As IdeaBlade.EntityModel.IEntityQuery
 
value = instance.GetFindQuery(selector, predicate, orderBy, fetchOptions)
C# 
protected virtual IdeaBlade.EntityModel.IEntityQuery GetFindQuery( 
   Func<IQueryable<T>,IQueryable> selector,
   Expression<Func<T,bool>> predicate,
   Func<IQueryable,IOrderedQueryable> orderBy,
   Action<IFetchOptions> fetchOptions
)
C++/CLI 
protected:
virtual IdeaBlade.EntityModel.IEntityQuery^ GetFindQuery( 
   Func<IQueryable<T^>^,IQueryable^>^ selector,
   Expression<Func<T^,bool>^>^ predicate,
   Func<IQueryable^,IOrderedQueryable^>^ orderBy,
   Action<IFetchOptions^>^ fetchOptions
) 

Parameters

selector
The selector used to project the entities.
predicate
The predicate expression used to qualify the list of objects.
orderBy
Sorting function to sort the returned list of objects.
fetchOptions
Delegate to specify additional fetching options.

Remarks

Override to modify the query used to retrieve a list of objects.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.